const { resolve } = require("./../utils.js");

module.exports = [
  {
    test: /\.svg$/,
    loader: "@svgr/webpack",
    include: resolve("src"),
  },
  {
    test: /\.(ttf|otf|eot|woff2?)(\?.+)?$/,
    include: resolve("src/assets"),
    use: {
      loader: "file-loader",
    },
  },
  {
    test: /\.(jpg|jpeg|png)(\?.+)?$/,
    include: resolve("src/assets"),
    use: "url-loader?limit=100000",
  },
  {
    test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.+)?$/,
    include: resolve("src/assets"),
    use: "url-loader?limit=100000000&name=media/[name]",
  },
];
